a11y: Unrealize ATContext on dispose()
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 10 Nov 2020 17:18:55 +0000 (17:18 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 11 Nov 2020 18:33:15 +0000 (18:33 +0000)
commit428ec295981492f16da9efac52f126305735071c
tree851108d5091abccfae17901bf7c1eb11c4420b94
parent74a7f73239af76d06015d166fc51894059bfb24e
a11y: Unrealize ATContext on dispose()

By unrealizing the context we avoid additional work during the dispose
phase, in case widget code updates the accessible state. We use
GtkAccessible's API, to ensure we unrealize the right ATContext, instead
of the one we store inside GtkWidgetPrivate.

We drop the ATContext instance inside GtkWidget during finalization, to
mop up eventual vivifications there.
gtk/gtkwidget.c